#include "afxcmn.h"
#include "afxext.h"
#include "afxwin.h"
#if !defined(AFX_GRAPHSETPAGE_H__E382984C_3574_45B6_83E5_B3E022E50847__INCLUDED_)
#define AFX_GRAPHSETPAGE_H__E382984C_3574_45B6_83E5_B3E022E50847__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GraphSetPage.h : header file
//

#include "DlgLeadInOut.h"
#include "../resource.h"
#include "../MotionControlSoftwareDoc.h"
/////////////////////////////////////////////////////////////////////////////
// CGraphSetPage dialog

class CGraphSetPage : public CDialogEx
{
	DECLARE_DYNCREATE(CGraphSetPage)

// Construction
public:
	CMotionControlSoftwareDoc* m_pDoc;
	CMenu m_rMenuOfTree;
	CGraphSetPage();
	~CGraphSetPage();
	CString m_strCurShowName;

	bool SelectedFail();

	HBITMAP m_hLockBM;
	HBITMAP m_hUnLockBM;
	HBITMAP m_hLeftTop;
	HBITMAP m_hLeftMiddle;
	HBITMAP m_hLeftBottom;
	HBITMAP m_hMiddleTop;
	HBITMAP m_hMiddleMiddle;
	HBITMAP m_hMiddleBottom;
	HBITMAP m_hRightTop;
	HBITMAP m_hRightMiddle;
	HBITMAP m_hRightBottom;

// Dialog Data
	//{{AFX_DATA(CGraphSetPage)
	enum { IDD = IDD_DLG_GRAPHSET };
	CListCtrl	m_graphList;

// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CGraphSetPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CGraphSetPage)
	virtual BOOL OnInitDialog();
	afx_msg void OnClickListGraphshow(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRclickListGraphshow(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMCustomDrawGraphshow(NMHDR *pNMHDR, LRESULT *pResult);
//	afx_msg void OnBTNClockDirection();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);

public:
	bool UpdateDoc();
	BOOL GetSelectedList();
	afx_msg LRESULT ShowAllData(WPARAM wParam, LPARAM lParam);

	afx_msg void OnBnClickedBtnChange();
	afx_msg void OnBnClickedButtonLeadinoutline();
	afx_msg void OnMoveListUp();
	afx_msg void OnMoveListDown();
	afx_msg void OnMoveListTop();
	afx_msg void OnMoveListBottom();
	afx_msg void OnMuDel();
	afx_msg void OnVectorToProfile();
	afx_msg void OnMoveWorkPoint();
	afx_msg void OnConvertDxfToGraph();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GRAPHSETPAGE_H__E382984C_3574_45B6_83E5_B3E022E50847__INCLUDED_)
